<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>  

<head>
<title>东方易云后台管理系统---System</title>

<link rel="stylesheet" type="text/css" href="/resource/js/tree_themes/SimpleTree.css"/>
<script type="text/javascript" src="/resource/js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="/resource/js/SimpleTree.js"></script>
<script type="text/javascript">
$(function(){
	$(".st_tree").SimpleTree({
		click:function(a){
			
		}
	});
});

function linkTo(hrefVal){
	
	 if(hrefVal !=null &&  hrefVal !=''){
		window.location=hrefVal;
	}
}
</script>
</head>


<body>


  dear , ${sessionScope.sessionUserBean.userInfoVO.username} ,please <a href="/logout" >quit</a>
   
   
<%--    <div class="st_tree">
		<ul>
		
			<c:forEach var="parentMenuVO" items="${sessionScope.sessionUserBean.parentMenuVOList}" varStatus="parent">
					<li><a href="${parentMenuVO.url}" onclick="nav(${parentMenuVO.url})">${parentMenuVO.menuName}</a></li>
					
					<ul>
						<c:forEach var="childMenuVO" items="${sessionScope.sessionUserBean.childMenuVOList}" varStatus="childStatus">
							
									<c:if test="${childMenuVO.parentId eq parentMenuVO.menuId }">
									 	<li><a href="${childMenuVO.url}" >${childMenuVO.menuName}</a></li>
								   </c:if>
					   
						</c:forEach>
					</ul>
					
					

			
			</c:forEach>
				
		</ul>
	</div> --%>

<div style="width:100%;">
	<table border="1" style="float:left; width:15%;">
		
		<c:forEach var="parentMenuVO" items="${sessionScope.sessionUserBean.parentMenuVOList}" varStatus="parentStatus">
			<tr>
			
				<td><a href="javascript:void(0);" target='<c:if test="${!parentStatus.last}">targetFrame</c:if>' 
 						onclick="linkTo('${parentMenuVO.url}');"
 						style="<c:choose><c:when test="${empty parentMenuVO.url}">text-decoration:none;</c:when><c:otherwise></c:otherwise></c:choose>"
 						><font color="red">${parentMenuVO.menuName}</font></a>
 				</td>
			
			</tr>
				
				<c:forEach var="childMenuVO" items="${sessionScope.sessionUserBean.childMenuVOList}" varStatus="childStatus">
						
						<c:if test="${childMenuVO.parentId eq parentMenuVO.menuId }">
						 	<tr><td><a href="${childMenuVO.url}"  target="targetFrame">${childMenuVO.menuName}</a></td></tr>
					   </c:if>
	
				</c:forEach>
	

		</c:forEach>
	</table>
	
		
	<iframe style="float:left;width:80%; " height=830 frameborder=0 scrolling=auto name="targetFrame" ></iframe>
</div>


</body>

</html>
